<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue的其他指令</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1 v-cloak>{{msg}}</h1>
        <h1 v-pre>欢迎学习Vue框架</h1>
        <h1 v-pre>{{msg}}</h1>
        <ul>
            <!--v-once只渲染一次-->
            <li v-for="user,index of users" :key="index" v-once>
                {{user}}
            </li>
        </ul>

        <ul>
            <li v-for="user,index of users" :key="index">
                {{user}}
            </li>
        </ul>
    </div>


    <script>
         const vm = new Vue({
                 el : '#app',
                 //Model M
                 data : {
                     msg : 'Vue的其他指令',
                     users : ['jack' , 'lucy' , 'james']
                 }
             })
    </script>
</body>
</html>